// global.constants = {
//     mobileRegex:/^((1[3,5,8][0-9])|(14[5,7])|(17[0,6,7,8])|(19[7]))\d{8}$/, //国内手机号正则表达式
//     telRegex:/0\d{2,3}-\d{7,8}/,    //国内座机正则表达式
// };

// const mobileRegex=/^((1[3,5,8][0-9])|(14[5,7])|(17[0,6,7,8])|(19[7,9]))\d{8}$/;
const mobileRegex = /^1\d{10}$/;
const telRegex = /0\d{2,3}-\d{7,8}/;
const telOrMobileRegex = /^(1\d{10})$|^(0\d{2,3}-\d{7,8})$/;
const spaceRegex = /^\S(\S|\s)*\S$/g;
const idCardRegex = /(^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx])|([1−9]\d5\d2((0[1−9])|(10|11|12))(([0−2][1−9])|10|20|30|31)\d2[0−9Xx])|([1−9]\d5\d2((0[1−9])|(10|11|12))(([0−2][1−9])|10|20|30|31)\d2[0−9Xx])/;
//const BaseUrl = 'http://lims.luochunlei.com/api';
//const BaseUrl = 'http://lims.tunnel.jydev.cn/api';
// const BaseUrl = 'http://lims.t.mvp.tn/api';
const BaseUrl = 'http://192.168.0.114:666/api';
// const UploadBaseUrl = 'http://lims.t.mvp.tn/zuul/api';
const UploadBaseUrl = 'http://192.168.0.114:666/zuul/api';

//上传接受类型  参考 https://blog.csdn.net/ssgo66/article/details/83621798
const commonUploadType = ".doc,.docx,.pdf,.xls,.xlsx,"+
    "application/msword  MS Word Document," +
    "application/vnd.openxmlformats-officedocument.wordprocessingml.document," +
    "application/pdf Portable Document Format,"
    "application/vnd.ms-excel    MS Excel Spreadsheet,"
    "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"

export {
    mobileRegex,
    telRegex,
    telOrMobileRegex,
    spaceRegex,
    idCardRegex,
    BaseUrl,
    UploadBaseUrl,
    commonUploadType
}